
#pragma once

#include "Common.h"
//https://en.cppreference.com/w/cpp/filesystem

namespace LuaGui {
	class FileSystem
	{
	public:
		//static std::string FormatPath(std::string path);
		static std::string GetFileText(std::string filepath);
		static bool Exists(fs::path& path, fs::file_status s = fs::file_status{});
		static bool IsDirectory(fs::path& path);
		static bool IsRegularFile(fs::path& path);
		static fs::path GetCurrentPath();
		static std::vector<std::string> GetFileList(fs::path& path, bool recursive = false);

		static void Rename(fs::path& old_path, fs::path& new_path);
		static bool CreateDirectory(fs::path& path);
		static bool RemoveDirectory(fs::path& path, bool recursive = false);
	};

}
